import http from '@/api/utils/http'

export function loginAPI(params = {}) {
	return http.post('/foregin/logins', params)
}

// 用户信息
export function getUserInfoAPI(params = {}) {
	return http.post('/foregin/getUserInfo', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}

export function publicUploadAPI(formData) {
	return http.post('/upload/saveuser', formData, {
		headers: {
			'Content-Type': 'multipart/form-data',
			token: localStorage.getItem('token'),
		},
	})
}
